package com.briup.shopadmin.common;

/**
 * @author adam
 * @Date  2023-07-11
 * 全局异常类
 *
 */
public class GlobalException extends  RuntimeException {
//    异常码
    private int code;

    public GlobalException(int code,String msg) {
        super(msg);
        this.code = code;

    }

    public int getCode() {
        return code;
    }
}
